package com.gof.example.bridge;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/6 15:44.
 * haiming.fei@tongdun.cn
 */
//public class ExcelCollectorAdapter extends ExcelApi implements DataCollector {
public class ExcelCollectorAdapter implements DataCollector {

    private ExcelApi api;

    public ExcelCollectorAdapter() {
        System.out.println("readDataFrom ExcelCollectorAdapter");
        api = new ExcelApi();
    }

    @Override
    public void readDataFrom() {
        api.readExcelData();
    }


//    @Override
//    public void readDataFrom() {
//        super.readExcelData();
//    }
}
